<html>
    <head>
        <meta charset="utf-8">
        <title>伪装分享</title>
    </head>
    <body>
        <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
        <script>
            wx.config({
                debug: true,
                appId: '<?php echo $signPackage["appId"];?>',
                timestamp: <?php echo $signPackage["timestamp"];?>,
                nonceStr: '<?php echo $signPackage["nonceStr"];?>',
                signature: '<?php echo $signPackage["signature"];?>',
                jsApiList: [
                    'checkJsApi',
                    'onMenuShareTimeline',
                    'onMenuShareAppMessage',
                    'onMenuShareQQ',
                    'onMenuShareWeibo',
                    'startMonitoringBeacons',
                    'stopMonitoringBeacons',
                    'onBeaconsInRange'
                ]
            });

            wx.ready(function () {
                wx.checkJsApi({
                    jsApiList: [
                        'onMenuShareTimeline',
                        'onMenuShareAppMessage',
                        'onMenuShareQQ',
                        'onMenuShareWeibo',
                        'startMonitoringBeacons',
                        'stopMonitoringBeacons',
                        'onBeaconsInRange'
                    ],
                });
                var shareData = {
                    title: '<?php echo $title;?>',
                    desc: '<?php echo $content;?>',
                    link: '<?php echo $url;?>',
                    imgUrl: '<?php echo $img;?>',
                };
                wx.onMenuShareAppMessage(shareData);
                wx.onMenuShareTimeline(shareData);
                wx.onMenuShareQQ(shareData);
                wx.onMenuShareWeibo(shareData);
            });
        </script>
    </body>
</html>
